//
// Created by 赵江明 on 16/8/11.
//

#import <Foundation/Foundation.h>
#import "HttpManager.h"

@class RACSignal;

@interface HttpManager (In)

- (RACSignal *)getPicstatPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)postStaticPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)getStaticPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)getInPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)postInPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)postLogPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)getFeedbackPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)postFeedbackPath:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)postDomain:(NSString *)domain path:(NSString *)path params:(NSDictionary *)params;

- (RACSignal *)getUpdateInPath:(NSString *)path params:(NSDictionary *)params;

@end

@interface HttpManager (RequestCustom)

/*!
 customParams :
 key            value
 "timeout"      NSNumber - > NSInteger
 "retrytime"    NSNumber - > NSInteger
 "retries"      NSNumber - > NSInteger
 */
- (RACSignal *)getInPath:(NSString *)path params:(NSDictionary *)params customParams:(NSDictionary *)customParams;

- (RACSignal *)postInPath:(NSString *)path params:(NSDictionary *)params customParams:(NSDictionary *)customParams;

@end